export default (value) => {
    if (value < 0) {
        return { hour: 0, minute: 0, second: 0 };
    }
    value = typeof (value) == 'undefined' ? 0 : value;
    var secondTime = parseInt(value);// 秒
    var minuteTime = 0;// 分
    var hourTime = 0;// 小时
    if (secondTime > 60) {
        minuteTime = parseInt(secondTime / 60);
        secondTime = parseInt(secondTime % 60);
        if (minuteTime > 60) {
            hourTime = parseInt(minuteTime / 60);
            minuteTime = parseInt(minuteTime % 60);
        }
    }
    return { hour: parseInt(hourTime), minute: parseInt(minuteTime), second: parseInt(secondTime) };
}